FROM centos
MAINTAINER csavard
RUN yum -y  update
RUN yum -y install wget
RUN yum -y install tar
RUN wget -O /tmp/tomcat7.tar.gz http://mirror.csclub.uwaterloo.ca/apache/tomcat/tomcat-7/v7.0.54/bin/apache-tomcat-7.0.54.tar.gz
RUN (cd /opt && tar zxf /tmp/tomcat7.tar.gz)
RUN (mv /opt/apache-tomcat* /opt/tomcat)
ADD ./run.sh /usr/local/bin/run
RUN chmod 777 /usr/local/bin/run
EXPOSE 8080
CMD /usr/local/bin/run